import CryptoJS from 'crypto-js/crypto-js'


//转译  时间
function encrypt(word){

  var key = CryptoJS.enc.Utf8.parse("04t4qCjg76bOE6YPcmg");

  var srcs = CryptoJS.enc.Utf8.parse(word);

  var encrypted = CryptoJS.AES.encrypt(srcs, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});
  return encrypted.toString();
}


export {
  encrypt
}